function serialize(o)
	if type(o) == "number" then
		io.write(o)
	elseif type(o) == "string" then
		io.write(string.format("%q", o))
	elseif type(o) == "table" then
		io.write("{\n")
		for k,v in pairs(o) do
			io.write(" ", k, " = ")
			serialize(v)
			io.write(",\n")
		end
		io.write("}\n")
	else
		io.write(tostring(o))
	end 
end

function schreibeTabelle(tab, tabName, file)
	io.output(file)
	io.write(tabName," = ")	
	serialize(tab)
	io.close()
end

